import request from "@/axios/axios"
export default {
    // 获取微信基本签名
    wxConfigApi(data) {
        return request({
            url: '/agent/user/config',
            method: 'post',
            data
        })
    },
    // 获取站点基本信息
    getSiteApi(data) {
        return request({
            url: '/agent/tenant/tenantAllocation',
            method: 'post',
            data
        })
    },
    // 获取用户基本信息
    getUserInfoApi() {
        return request({
            url: '/agent/user/realNameDetails',
            method: 'post',
        })
    },
    // 获取默认设备信息
    getEquipmentApi() {
        return request({
            url: '/tool/manage/defaultDetails',
            method: 'post',
        })
    },
    // 获取海报
    getPlacardApi() {
        return request({
            url: '/placard',
            method: 'post',
        })
    },
    // 获取设备列表信息
    getEquipmentListApi() {
        return request({
            url: '/tool/manage/list',
            method: 'post',
        })
    },
    // 切换默认设备
    changeEquipmentApi(data) {
        return request({
            url: '/tool/manage/switchingBinding',
            method: 'post',
            data
        })
    },
    // 获取权益标记
    getEquityMarkApi(data) {
        return request({
            url: '/tool/manage/equityMark',
            method: 'post',
            data
        })
    },
    // 获取权益说明
    getEquityIntroduceApi(data) {
        return request({
            url: '/agent/user/equityBackground',
            method: 'post',
            data
        })
    },
    // 微信支付
    payVip(data) {
        return request({
            url: `/wechat/pay/jsPay`,
            method: 'post',
            data
        })
    },
    // 实名认证
    realNameApi(data) {
        return request({
            url: `/agent/user/realNameAuthentication`,
            method: 'post',
            data
        })
    },
    // 协议
    agreementApi(data) {
        return request({
            url: `/agent/tenant/agreement`,
            method: 'post',
            data
        })
    },
    // 获取钱包列表
    walletListApi(data) {
        return request({
            url: `/agent/user/payRecordList`,
            method: 'post',
            data
        })
    },
    // 获取钱包收支统计
    walletStatisticsApi(data) {
        return request({
            url: `/agent/user/incomeSummary`,
            method: 'post',
            data
        })
    },
    // 钱包提现
    walletWithdrawApi(data) {
        return request({
            url: `/agent/user/balanceWithdrawal`,
            method: 'post',
            data
        })
    },
    signListApi() {
        return request({
            url: `/user/sign/list`,
            method: 'post',
        })
    },
    signApi() {
        return request({
            url: `/user/sign/save`,
            method: 'post',
        })
    },
    // 获取交易列表
    tradingListApi(data) {
        return request({
            url: `/trading/record/tradingList`,
            method: 'post',
            data
        })
    },
    // 获取交易统计数额
    tradingSummaryApi(data) {
        return request({
            url: `/trading/record/statisticalTransaction`,
            method: 'post',
            data
        })
    },
    // 获取待返金额
    returnSummaryApi(data) {
        return request({
            url: `/agent/user/returnedAmount`,
            method: 'post',
            data
        })
    },
    // 获取达标详情进度
    reachStandardProcessApi(data) {
        return request({
            url: `/reach/device/task/details`,
            method: 'post',
            data
        })
    },
    // 获取达标详情记录列表
    reachStandardDetailListApi(data) {
        return request({
            url: `/reach/device/record/list`,
            method: 'post',
            data
        })
    },
}
